package com.k2.whereareyou.xml;

import org.simpleframework.xml.Attribute;
import org.simpleframework.xml.Element;
import org.simpleframework.xml.Root;

import com.k2.whereareyou.interfaces.IConstants;

@Root(name="request")
public class VideoXML implements IConstants{
	
	private int type = REQUEST_TYPE_VIDEO;
	private String id;
	private byte[] video;
	private String komment;
	private String data;
	private String koord;
	
	@Attribute(name="type")
	public int getType() {
		return type;
	}
	
	@Attribute(name="type")
	public void setType(int type) {
		this.type = type;
	}
	

	@Element(name="id")
	public String getId() {
		return id;
	}
    
    @Element(name="id")
	public void setId(String id) {
		this.id = id;
	}
    
	
	@Element(name="video")
	public byte[] getVideo() {
		return video;
	}
	
	@Element(name="video")
	public void setVideo(byte[] video) {
		this.video = video;
	}
	
	@Element(name="komment")
	public String getKomment() {
		return komment;
	}
	
	@Element(name="komment")
	public void setKomment(String komment) {
		this.komment = komment;
	}
	
	@Element(name="data")
	public String getData() {
		return data;
	}
	
	@Element(name="data")
	public void setData(String data) {
		this.data = data;
	}
	
	@Element(name="coordinates")
	public String getKoord() {
		return koord;
	}
	
	@Element(name="coordinates")
	public void setKoord(String koord) {
		this.koord = koord;
	}

}
